package com.bkhech.netty.httpwebsocket.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * Message
 *
 * @author guowm
 * @date 2024-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class ChatMessage extends Message {
    // 接受者的用户id
    private String receiverId;
    /**
     * 消息类型
     *
     * @see ChatType
     */
    private ChatType chatType;
    // 聊天内容
    private String msg;

    // 用于标记当前接收者是否在线
    private Boolean isReceiverOnLine;

}

